﻿<UserControls:ScrumUserControl x:Class="ScrumTable.UI.View.WinTouch.UserControls.Tool.ScreenGrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter;assembly=ScrumTable.UI.View" xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" xmlns:UserControls="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls" Width="1000" Height="500">


    <UserControl.Resources>

        <Storyboard x:Key="Hide">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  Storyboard.TargetProperty="(FrameworkElement.Width)">
                <SplineDoubleKeyFrame KeyTime="00:00:01" Value="50"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Show">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="(FrameworkElement.Width)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="50"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <!--
        <Style  TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Height" Value="30" />
            <Setter Property="Width" Value="30" />
            <Setter Property="Margin" Value="3" />            
            
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="OpacityMask" Value="{StaticResource disabledMask}" />
                </Trigger>
                <Trigger Property="IsEnabled" Value="True">
                    <Setter Property="OpacityMask" Value="{StaticResource enabledMask}" />
                </Trigger>

 
            </Style.Triggers>
        </Style>
        
        -->
        
         <Style  TargetType="{x:Type s:SurfaceButton}" BasedOn="{StaticResource {x:Type s:SurfaceButton}}">            
            <Setter Property="Height" Value="40" />
            <Setter Property="Width" Value="40" />
            <Setter Property="Margin" Value="3" />
            <Setter Property="Background" Value="Pink" />           
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="OpacityMask" Value="{StaticResource disabledMask}" />
                </Trigger>
                <Trigger Property="IsEnabled" Value="True">
                    <Setter Property="OpacityMask" Value="{StaticResource enabledMask}" />
                </Trigger>

            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    
    <Grid >          
        <Grid.RowDefinitions>
            <RowDefinition/>            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition ></ColumnDefinition> 
        </Grid.ColumnDefinitions>
        <Grid.Resources>
            
        </Grid.Resources>
        <Grid Name="ControlPlace"/>
        <StackPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Width="50" Orientation="Horizontal" HorizontalAlignment="Right"  VerticalAlignment="Top" Name="GridMenu" >   
            <StackPanel.Background>
                <SolidColorBrush Color="Transparent" Opacity="1"/>
            </StackPanel.Background>            
            
            <StackPanel.Triggers>
                <EventTrigger RoutedEvent="UIElement.MouseEnter" >                    
                    <BeginStoryboard Storyboard="{StaticResource Show}"/>
                </EventTrigger>
                <EventTrigger RoutedEvent="UIElement.MouseLeave" >
                    <BeginStoryboard Storyboard="{StaticResource Hide}" />
                </EventTrigger>                
            </StackPanel.Triggers>
            <!--
            <GroupBox Localization:Translate.Uid="Tools_Open" Header="{Localization:Translate Default=[Open]}" HorizontalAlignment="Right" VerticalAlignment="Top">
            -->
            <StackPanel Orientation="Vertical">
                <s:SurfaceButton Click="OnOpenProjectPlanningUserStories"  Background="{StaticResource IconStackRanking}" Localization:Translate.Uid="MenuProjectPlanningRanking" ToolTip="{Localization:Translate Default=[Story Ranking]}"/>
                <s:SurfaceButton Click="OnOpenProjectPlanningIterations" Background="{StaticResource IconProjectPlanningIterations}" Localization:Translate.Uid="MenuProjectPlanningSprints" ToolTip="{Localization:Translate Default=[Sprints]}" ></s:SurfaceButton>
                <!--
                    <s:SurfaceButton Click="OnOpenSprintPlanningTask" Background="{StaticResource IconSprintPlanning}" Localization:Translate.Uid="MenuSprintTask" ToolTip="{Localization:Translate Default=[Tasks]}"/>
                    -->
                <s:SurfaceButton Click="OnOpenStackedDailyScrumStoryBoard" Background="{StaticResource IconScrumBoard}" Localization:Translate.Uid="MenuDailyScrumBoard" ToolTip="{Localization:Translate Default=[Scrum Board]}"></s:SurfaceButton>
                <s:SurfaceButton Click="OnOpenStoryBoard" Background="{StaticResource IconStoryBoard}" Localization:Translate.Uid="MenuDailyScrumBoard" ToolTip="{Localization:Translate Default=[Scrum Board]}"></s:SurfaceButton>
                <s:SurfaceButton Click="OnOpenTaskBoard" Background="{StaticResource IconTaskBoard}" Localization:Translate.Uid="MenuDailyScrumBoard" ToolTip="{Localization:Translate Default=[Scrum Board]}"></s:SurfaceButton>
                <s:SurfaceButton Background="{StaticResource IconBurnDown}" Click="OnReportClick" Localization:Translate.Uid="Tools_Chart" ToolTip="{Localization:Translate Default=[Chart]}"></s:SurfaceButton>                
                <s:SurfaceButton Background="{StaticResource IconClose}" Click="OnClose" Localization:Translate.Uid="ToolsClose" ToolTip="{Localization:Translate Default=[Close]}"></s:SurfaceButton>
            </StackPanel>
            <!--
            </GroupBox>
            -->
            <!--
            <GroupBox  Localization:Translate.Uid="Tools_Edit" Header="{Localization:Translate Default=[Edit]}" HorizontalAlignment="Right">
                <StackPanel Orientation="Vertical" VerticalAlignment="Top" >
                    <s:SurfaceButton Background="{StaticResource IconUndo }" Click="OnUndo" IsEnabled="{Binding Path=ScrumData.DataContext.UndoManager.CanUndo}" Localization:Translate.Uid="ToolsUndo" ToolTip="{Localization:Translate Default=[Undo]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconRedo }" Click="OnRedo" IsEnabled="{Binding Path=ScrumData.DataContext.UndoManager.CanRedo}" Localization:Translate.Uid="ToolsRedo" ToolTip="{Localization:Translate Default=[Redo]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconOpenUndo }" Click="OnShowUndoRedoHistory"  Localization:Translate.Uid="ToolsUndoWindow" ToolTip="{Localization:Translate Default=[recent changes]}"></s:SurfaceButton>                    
                </StackPanel>
            </GroupBox>         
            <GroupBox Localization:Translate.Uid="Tools_Function" Header="{Localization:Translate Default=[Function]}"  HorizontalAlignment="Right">
                <StackPanel Orientation="Vertical" HorizontalAlignment="Left"  VerticalAlignment="Top" >
                    <s:SurfaceButton Background="{StaticResource IconClose}" Click="OnClose" Localization:Translate.Uid="ToolsClose" ToolTip="{Localization:Translate Default=[Close]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconGlass}" Click="OnFilter" Localization:Translate.Uid="ToolsSearch" ToolTip="{Localization:Translate Default=[Search]}"></s:SurfaceButton>                    
                    <s:SurfaceButton Background="{StaticResource IconMembers}" Click="OnTeamMemberOpen" Localization:Translate.Uid="ToolsTeamMembers" ToolTip="{Localization:Translate Default=[Team Members]}"></s:SurfaceButton>                                        
                    <s:SurfaceButton Background="{StaticResource IconLogOut }" Click="OnLogOut" Localization:Translate.Uid="ToolsLogOut" ToolTip="{Localization:Translate Default=[LogOut]}"></s:SurfaceButton>
                </StackPanel>
            </GroupBox>
            -->
        </StackPanel>                         
    </Grid>
</UserControls:ScrumUserControl>
